package com.google.code.echronos;

final class EventImpl implements Event {
	private final String identifier;
	private final Long timestamp;
	private final Object payload;

	EventImpl(final String identifier, final Long timestamp, final Object payload) {
		this.identifier = identifier;
		this.timestamp = timestamp;
		this.payload = payload;
	}

	@Override
	public String getIdentifier() {
		return identifier;
	}

	@Override
	public long getTimestamp() {
		return timestamp;
	}

	@Override
	public Object getPayload() {
		return payload;
	}
}
